{if $cross_search|@count > 0}
<div class="crossBlock">
{foreach from=$cross_search item=block name="blockLoop" key=keyName}
{if $smarty.foreach.blockLoop.iteration % 2 == 1}
<div class="outside"><!--outside-->
<div class="inner_left">
{else}
<div class="inner_right">
{/if}

{if $block.DATA|@count > 0}
<h2><span>{$block.TITLE}</span></h2>
<p class="txt3">{$block.TEXT}</p>
<ul class="innerBlock01">
{foreach from=$block.DATA item=crossData name="dataLoop"}
{if $crossData.DISP_NAME != ""}
<li {if (!$block.MORE_URL) && $block.MORE_NAME && $smarty.foreach.dataLoop.index > $block.MORE_CNT}class="staticUrl{$smarty.foreach.blockLoop.index}" style="display:none"{/if}>
{if $crossData.STATIC_URL != ""}<a href="{$crossData.STATIC_URL}">{$crossData.DISP_NAME}</a>
{else}<strong>{$crossData.DISP_NAME}</strong>{/if}
</li>
{/if}
{/foreach}
</ul>
{if $block.MORE_URL != "" && $block.MORE_NAME != ""}<ul class="more"><a href="{$block.MORE_URL}">{$block.MORE_NAME}</a></ul>
{elseif $block.MORE_NAME != ""}<ul class="more"><a class="moreUrl{$smarty.foreach.blockLoop.index}" href="javascript:seoKodawariLinkAct({$smarty.foreach.blockLoop.index})">{$block.MORE_NAME}</a></ul>{/if}
{/if}

</div><!-- /inner_left/inner_right -->

{if $smarty.foreach.blockLoop.last}
{if $smarty.foreach.blockLoop.iteration % 2 == 0}
</div><!--/outside-->
<div class="outside"><!--outside-->
<div class="inner_left">
{else}
<div class="inner_right">
{/if}
<h2><span>地域情報発信&nbsp;アパログ</span></h2>
<p class="txt3">全国のアパマンショップから地域情報をブログで発信中！</p>
<a href="http://blog.apamanshop.com/" target="_blank">アパログトップ</a>
</div><!-- /inner_left/inner_right -->
{/if}

{if $smarty.foreach.blockLoop.iteration % 2 == 0 || $smarty.foreach.blockLoop.last}</div><!--/outside-->{/if}
{/foreach}
</div><!-- /crossSearchBlock -->
{/if}
